<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>商品列表</title>
</head>
<body>
<p th:text="'hello  '+${user.nickname}"></p>
<table width="100%">
    <tr>
        <td>商品名称</td>
        <td>商品图片</td>
        <td>商品价格</td>
        <td>商品秒杀价</td>
        <td>库存数量</td>
        <td>操作</td>
    </tr>
    <tr th:each="goods:${goodsList}">
        <td th:text="${goods.goodsName}"></td>
        <td>
            <image th:width="150px" th:height="200px" th:src="${goods.goodsImg}"></image>
        </td>
        <td th:text="${goods.goodsPrice}"></td>
        <td th:text="${goods.seckillPrice}"></td>
        <td th:text="${goods.goodsStock}"></td>
        <td><a th:href="'./goToGoodsDetail?goodsId='+${goods.id}">详情</a></td>
    </tr>
</table>
</body>
</html>